<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登入</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <h1>发送消息</h1>
    <div th:if="${param.error}" class="alert alert-danger" role="alert">
        ${param.error}
    </div>
    <div th:if="${param.result}" class="alert alert-danger" role="alert">
        发送给${param.result}个设备
    </div>
    <form method="post" th:action="@{/msg/sendSelect}">
        <div class="form-group">
            <label for="funcCode">协议传输版本号0x01</label>
        </div>
        <div class="form-group">
            <label for="snStr">设备SN（多个逗号分隔）</label>
            <input name="snStr" type="text" class="form-control" id="snStr" placeholder="示例：1a2b3c4d,01020304">
        </div>
        <div class="form-group">
            <label for="funcCode">功能码（十六进制字串）</label>
            <input name="funcCode" type="text" class="form-control" id="funcCode" placeholder="输入功能码">
        </div>
        <div class="form-group">
            <label for="body">数据（十六进制字串）</label>
            <input name="body" type="text" class="form-control" id="body" placeholder="输入数据">
        </div>
        <button type="submit" class="btn btn-primary">发送</button>
    </form>
</div>
</body>
</html>